<?php

namespace PHPSpring\Annotation\Impl;

class Query {

  public static function replace ($annoArgs, $ret, $target, $method, $args) {
    $sql = $annoArgs[0];
    $params = empty($args) ? null : $args[0];
    $entityClz = (count($annoArgs) > 1) ? $annoArgs[1] : null;
    return $target->query($sql, $params, $entityClz);
  }

}